API: Deprecate functions to register custom CSS properties
authorBenjamin Otte <otte@redhat.com>
Fri, 30 Nov 2012 21:45:20 +0000 (22:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 30 Nov 2012 21:45:20 +0000 (22:45 +0100)
We should slowly transition code to using the GTK-provided CSS. So here
we go.

gtk/gtkcsscustomproperty.c
gtk/gtkstyleproperties.h
gtk/gtkthemingengine.h

index 017a8a22e18af3860f506ac14c7f8bf21932165a..4c0437983ff59fdfcf54e2170c208700a903e284 100644 (file)
@@ -211,6 +211,8 @@ gtk_css_custom_property_create_initial_value (GParamSpec *pspec)
  * </note>
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.8: Code should use the default properties provided by CSS.
  **/
 void
 gtk_theming_engine_register_property (const gchar            *name_space,
@@ -260,6 +262,8 @@ gtk_theming_engine_register_property (const gchar            *name_space,
  * a theming engine, you want to use that function instead.
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.8: Code should use the default properties provided by CSS.
  **/
 void
 gtk_style_properties_register_property (GtkStylePropertyParser  parse_func,
@@ -303,6 +307,9 @@ gtk_style_properties_register_property (GtkStylePropertyParser  parse_func,
  * Returns: %TRUE if the property is registered, %FALSE otherwise
  *
  * Since: 3.0
+ *
+ * Deprecated: 3.8: This code could only look up custom properties and
+ *     those are deprecated.
  **/
 gboolean
 gtk_style_properties_lookup_property (const gchar             *property_name,
index eb8ff708f245e647310a35cf486915dbc7eecbec..7237361e2d8991dab05c0296cb2ded213f938357 100644 (file)
@@ -66,8 +66,10 @@ typedef gboolean (* GtkStylePropertyParser) (const gchar  *string,
 GType gtk_style_properties_get_type (void) G_GNUC_CONST;
 
 /* Next 2 are implemented in gtkcsscustomproperty.c */
+GDK_DEPRECATED_IN_3_8
 void     gtk_style_properties_register_property (GtkStylePropertyParser  parse_func,
                                                  GParamSpec             *pspec);
+GDK_DEPRECATED_IN_3_8
 gboolean gtk_style_properties_lookup_property   (const gchar             *property_name,
                                                  GtkStylePropertyParser  *parse_func,
                                                  GParamSpec             **pspec);
index 8ea017d5a3aa0749bfb0af7851856281aa86e699..0bdc3a13cfcbe1fdaececeac7ae670efaf19ac46 100644 (file)
@@ -182,6 +182,7 @@ struct _GtkThemingEngineClass
 GType gtk_theming_engine_get_type (void) G_GNUC_CONST;
 
 /* function implemented in gtkcsscustomproperty.c */
+GDK_DEPRECATED_IN_3_8
 void gtk_theming_engine_register_property (const gchar            *name_space,
                                            GtkStylePropertyParser  parse_func,
                                            GParamSpec             *pspec);